<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
<h:head>

	<link rel="stylesheet" href="resources/css/estilos.css" />
	<title>Tela de Login</title>

</h:head>
<h:body>

	<p:commandButton value=" Realizar o Login" oncomplete="dlgNovo.show();"
		image="icon-add" />

	<!-- Formulário para inserir Usuário e Senha -->

	<h:form id="formUsuario">

		<p:dialog header="Realizar o Login" widgetVar="dlgNovo"
			resizable="true" id="dlgNovo" showEffect="fade" hideEffect="explode"
			modal="true">

			<p:growl id="growl" showDetail="true" sticky="true" />

			<h:panelGrid id="pgNovo" columns="2" cellpadding="4"
				style="margin:0 auto;">

				<p:outputLabel for="tt" value="Login" />
				<p:inputText id="tt" value="#{MBLogin.user.login}"
					onfocus="this.value='';" required="true" />

				<p:outputLabel for="xx" value="Senha" />
				<p:password id="xx" value="#{MBLogin.user.senha}"
					onfocus="this.value='';" required="true" />

			</h:panelGrid>

			<p:separator />

			<p:commandButton value="Logar" action="#{MBLogin.logar}"
				update="pgNovo" />
		</p:dialog>

	</h:form>

</h:body>
</html>
